<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script type="text/javascript">
            function insertBeforeHtml(html) {
                var element = document.createElement('div');
                element.innerHTML = html;
                document.body.insertBefore(element, document.body.firstElementChild);
            }
            
            function insert() {
                var html="<a>hhhh</a>";
                insertBeforeHtml(html);
            }
        </script>
    </head>
    <body>
        <div>TODO write content</div>
        <input id="html_text" type="text">
        <button onclick="insert()" >add</button>
    </body>
</html>
